package com.qf.springmybatis.dao;

import com.qf.springmybatis.entity.User;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface UserDao {
    User getUserById(@Param("id") Integer id);

    User getUserByIdAndPwd(@Param("id") Integer id, @Param("pwd") String pwd);

    User selectUserByIdAndPwd_map(Map values);

    User selectUserByUserInfo(User user);

    List<User> selectUsersByKeyword(@Param("keyword") String keyword);

    Integer deleteUserById(Integer id);

    Integer updateUser(User user);

    Integer insertUser(User user);
}
